<?php
class View extends ArrayObject {
	public function __construct() {
		parent::__construct(array(), ArrayObject::ARRAY_AS_PROPS);
	}
	public function render($file) {
		echo $file;
		ob_start();
		include(dirname(__FILE__) . '/' . $file); 
		return ob_get_clean();
	} 
}
?>
